import {GET_SUBJECTS} from '../types/subject'
import {createAction} from 'redux-actions'
import {service} from '../../service/api.js'
import {$post} from '../../util/request'

export const getSubjects = createAction(GET_SUBJECTS, async(param={}) => {
  return $post(service.getSubCatagory, param)
})

